package com.csii.ams.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.csii.adhoc.annotation.OperationLog;
import com.csii.ams.PocRecordVO;
import com.csii.ams.SearchBean;
import com.csii.ams.service.PocRecordService;
import com.csii.result.APIResult;
import com.csii.result.PageVo;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.*;

@Controller
@RequestMapping("/**/poc/pocrecord")
public class PocRecordController {
    @Autowired
    PocRecordService pocRecordService;
    @RequestMapping(value = "/getAllPocRecord")
    @ResponseBody
    @OperationLog("查询档案定义列表")
    public APIResult<?> getAllPocRecord(HttpServletRequest request, @RequestBody PocRecordVO pocRecordVO) {
        Page<PocRecordVO> page = new Page<>(pocRecordVO.getPageNo(),pocRecordVO.getPageSize());
        return APIResult.successResult(PageVo.getPageVoFromIPage(pocRecordService.getAllPocRecord(page)));
    }




}


